package data.dto;

import java.sql.Timestamp;

public class LeaveDTO {

	private int id;
	private Short leaveType;
	private Timestamp startDate;
	private Timestamp endDate;
	private Short natureOfLeave;
	private String reason;
	private String workDisemmination;
	private String contactDetails;
	private int createdBy;
	private Timestamp createdOn;
	private int modifiedBy;
	private Timestamp modifiedOn;
	private Short status;
	
	private String username;
	private String LeaveTypeName;
	private String natureOfLeaveName;
	private String userTypeName;
	private String comment;
	
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getUserTypeName() {
		return userTypeName;
	}

	public void setUserTypeName(String userTypeName) {
		this.userTypeName = userTypeName;
	}

	public String getNatureOfLeaveName() {
		return natureOfLeaveName;
	}

	public void setNatureOfLeaveName(String natureOfLeaveName) {
		this.natureOfLeaveName = natureOfLeaveName;
	}

	public String getLeaveTypeName() {
		return LeaveTypeName;
	}

	public void setLeaveTypeName(String leaveTypeName) {
		LeaveTypeName = leaveTypeName;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public LeaveDTO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public LeaveDTO(int id, Short leaveType, Timestamp startDate,
			Timestamp endDate, Short natureOfLeave, String reason,
			String workDisemmination, String contactDetails,
			int createdBy, Timestamp createdOn, int modifiedBy,
			Timestamp modifiedOn, Short status, Short userid) {
		super();
		this.id = id;
		this.leaveType = leaveType;
		this.startDate = startDate;
		this.endDate = endDate;
		this.natureOfLeave = natureOfLeave;
		this.reason = reason;
		this.workDisemmination = workDisemmination;
		this.contactDetails = contactDetails;
		this.createdBy = createdBy;
		this.createdOn = createdOn;
		this.modifiedBy = modifiedBy;
		this.modifiedOn = modifiedOn;
		this.status = status;
		//this.userid = userid;
	}

	
//	public Short getUserid() {
//		return userid;
//	}
//
//	public void setUserid(Short userid) {
//		this.userid = userid;
//	}

	@Override
	public String toString() {
		return "LeaveDTO [id=" + id + ", leaveType=" + leaveType
				+ ", startDate=" + startDate + ", endDate=" + endDate
				+ ", natureOfLeave=" + natureOfLeave + ", reason=" + reason
				+ ", workDisemmination=" + workDisemmination
				+ ", contactDetails=" + contactDetails + ", createdBy="
				+ createdBy + ", createdOn=" + createdOn + ", modifiedBy="
				+ modifiedBy + ", modifiedOn=" + modifiedOn + ", status="
				+ status + "]";
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Short getLeaveType() {
		return leaveType;
	}

	public void setLeaveType(Short leaveType) {
		this.leaveType = leaveType;
	}

	public Timestamp getStartDate() {
		return startDate;
	}

	public void setStartDate(Timestamp startDate) {
		this.startDate = startDate;
	}

	public Timestamp getEndDate() {
		return endDate;
	}

	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}

	public Short getNatureOfLeave() {
		return natureOfLeave;
	}

	public void setNatureOfLeave(Short natureOfLeave) {
		this.natureOfLeave = natureOfLeave;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getWorkDisemmination() {
		return workDisemmination;
	}

	public void setWorkDisemmination(String workDisemmination) {
		this.workDisemmination = workDisemmination;
	}

	public String getContactDetails() {
		return contactDetails;
	}

	public void setContactDetails(String contactDetails) {
		this.contactDetails = contactDetails;
	}

	public int getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(int createdBy) {
		this.createdBy = createdBy;
	}

	public Timestamp getCreatedOn() {
		return createdOn;
	}

	public void setCreatedOn(Timestamp createdOn) {
		this.createdOn = createdOn;
	}

	public int getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(int modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public Timestamp getModifiedOn() {
		return modifiedOn;
	}

	public void setModifiedOn(Timestamp modifiedOn) {
		this.modifiedOn = modifiedOn;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

}
